package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.PersonalUserOpenid;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.IGuide;

public class GuideService {

    static final String serviceName = "guideService";

    static IGuide guideService = null;

    static {
        guideService = (IGuide) SpringContextHandler.getBean(serviceName);
    }
    
    public static IGuide getBaseClient(){
    	return guideService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return guideService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return guideService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return guideService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return guideService.callHumpFromInternal("", method, data, (short) 0);
    }
    
    /**
     * 定时同步导医记录
     */
    public void doGuideSync() {
    	guideService.doGuideSync();
    }
}
